import {observable, action, toJS} from 'mobx';
import {WeaTableNew} from 'comsMobx'
const {TableStore} = WeaTableNew;
import Apis from '../apis/Api'

class PortalStore {
  @observable tableStore = new TableStore();
  @observable title = '加载中...';
  
  @action
  getOutterDataMore = (eid, tabid) => {
    Apis.getOutterDataMoreTableKey({eid, tabid}).then((result) => {
      this.tableStore.getDatas(result.dataKey, 1);
    });
  }
  getTitle = (eid, tabid) => {
    Apis.getOutterDataMoreTableTitle({eid, tabid}).then((result) => {
      this.title = result.title;
    });
  }
}
export default PortalStore;